package com.motorhome.h5.dao;

import com.motorhome.h5.domain.Car;
import com.motorhome.h5.domain.Order;
import com.motorhome.h5.domain.Price;

import java.util.Date;
import java.util.List;

/**
 * @author: John
 */
public interface HomeDao {

    List<Price> getAllPriceList();

    List<Car> getAllCarList();

    int insertOrder(Long userId, String phone, String userName, Long startCityId, String startCityName,
                     Long startShopId, String startShopName, Date start, Long endCityId, String endCityName,
                     Long endShopId, String endShopName, Date end, Long carId, String carName, String carDescription,
                     Float price, Integer days, Float total, String totalSnapshot,
                    String couponGuid, String guid, String subCount, String couponValue, String typeName);

    Price getPriceByCarId(long carId);

    Car getCarById(long carId);

    int updateOrderPayStatusSuccess(int payType, long orderId, String payResponse);

    Long queryMysqlLastAutoId();

    List<Order> getOrderListByStatus(int status);
}
